<template>
	<view>
		{{ $store.state.name }} {{ $store.state.age }}
	</view>
</template>

<script>
	import { mapMutations } from 'vuex'
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			...mapMutations(['addAge'])
		},
		mounted() {
			console.log(this.$store.name);
			
			this.addAge(2)
		}
	}
</script>

<style>

</style>
